﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BF
{
	public class BF_Engine
	{
		public List<BF_Player> Players = new List<BF_Player>();

		public BF_Map Map;
		public List<BF_Unit> Units = new List<BF_Unit>();

		public BF_Engine()
		{
			Map = new BF_Map();
		}
		public void Process(double dt)
		{
			foreach (BF_Unit U in Units)
				U.Process(dt);
		}

		public void CreateUnit(double longit, double latit, double elev, double hdg)
		{
		}
	}
	public class BF_Engine2
	{
		public byte[,] Occupation;

		public List<BF_Unit> Units = new List<BF_Unit>();
		public List<BF_Bullet> Bullets = new List<BF_Bullet>();

		public void FireUnit(BF_Unit U)
		{
			//BF_Bullet[] res=U.FireAmmo();
		}
		public void TestUnitShot()
		{
			//Units[0].Shot();
		}
		public BF_Engine2(int W, int H)
		{
			//Map = new BF_Map_XY(W, H);
		}
		public void PlaceUnit(BF_Unit U,int X,int Y)
		{
			//U.PlaceTo(Map.wTiles[X, Y]);
		}
	}
}